how to find the ionization energy of an element