how to extract copper from its ores