X-ray emission spectroscopy