Simultaneous thermogravimetric–mass spectrometric study on the pyrolysis behaviour of different rank coals