The extraction of metals from their ores