Effective-mass analysis of Bose-Einstein condensates in optical lattices: Stabilization and levitation