The mechanism of leaching of gold from refractory ores