Quantitative TG-MS analysis of evolved gases during the thermal decomposition of carbon containing solids