X-Ray spectroscopy