The XANES measurements were carried out at beamline I811, MAX-Lab, Lund University, Sweden. We thank Dr. Stefan Carlson and Dr. Kajsa Sigfridsson at beamline I811 for their assistance with the XANES measurements. We thank Formas (contract# 2018-00760) and the Geological Survey of Sweden (contract# 36-1878/2017) for financial support.