how to extract copper from copper ores