what are the byproducts of producing gold and platinum through mining