Explain how the electrons in an atom can absorb and emit electromagnetic radiation, and how an atom can become a positive ion.