the process of extracting gold from ores