Spectroscopy solutions for pharmaceutical analysis