refining of gold-bearing ores