what is electromagnetic radiation in spectroscopy