Pyrolysis–gas chromatography–mass spectrometry