Geological and anthropogenic factors influencing mercury speciation in mine wastes: an EXAFS spectroscopy study