mid infrared mir spectroscopy for quality analysis of