Applications of X-ray Spectrometry