thermodynamics of gold leaching from its ores