X-ray absorption near-edge structure (XANES) spectroscopy