Mechanisms of mercury removal by biochars produced from different feedstocks determined using X-ray absorption spectroscopy.