Analysis of coal by thermogravimetry—fourier transform infrared spectroscopy and pyrolysis modeling