Thermal ionization mass spectrometry