principle of spectroscopy in chemistry