Application of factor analysis for resolving thermogravimetric-mass spectrometric analysis spectra