Thermal analysis/mass spectrometry as a tool for studying environmental pollution by coal gasification