what by products for producing copper