what a byproduct of producing copper through mining