Characterization and speciation of mercury-bearing mine wastes using X-ray absorption spectroscopy.