Detection of counterfeit medicines with infrared spectroscopy