An introduction to infrared spectroscopy