Explain specifically how an electron gives off light in an atom.