The effects of instrument parameters and sample properties on thermal decomposition: interpreting thermal analysis data from Mars