what are the byproducts of producing mercury and gold through mining