process of extracting minerals from the ores