Modulational instability of Bose-Einstein condensates in two- and three-dimensional optical lattices