Metals can be extracted from their ores by a process involving