Analytical Advances and Applications of X-Ray Spectroscopy