how does the outer energy level relate to the ionization energy?