This paper is published as part of a PCCP themed issue on recent developments in X-ray absorption spectroscopy