Least-Squares Curve-Fitting of Fourier Transform Infrared Spectra with Applications to Polymer Systems