Total reflection X-ray spectrometry