Quantitative arsenic speciation in mine tailings using X-ray absorption spectroscopy