X-ray absorption fine structure (XAFS) provides information on the atomic-scale structure around a specific atom, and has become an essential analytical tool in materials, biology and many other sciences [1, 2]. The availability of a synchrotron source has facilitated the application of XAFS, because a strong smooth spectral distribution is important for the measurements, and synchrotron radiat...