X‑ray spectroscopy