process in extracting copper from ore