by products producing copper through mining