Thermal analysis/evolved gas analysis using single photon ionization