Understanding atomic x-ray absorption fine structure in x-ray absorption spectra