On the Stanley depth of weakly polymatroidal ideals