Modulational instability in Bose-Einstein condensates in optical lattices