byproducts of producing copper through mining