chemical process of extracting gold from ores