How does the energy of an electron change when the electron moves closer to the nucleus?