Characterization of glasses using infrared spectroscopy