According to the Bohr model of the atom, describe how an electron can get to an excited state. Also, describe what happens when an electron transitions to an energy level closer to the nucleus.