how to calculate the wavelength of electromagnetic radiation needed to remove an electron from the valance shell of an atom of the element