extraction of minerals from ores