X-ray absorption spectroscopy: state-of-the-art analysis.