how many electrons are in the outer energy level of the atoms of alkaline-earth metals?