Solution chemistry of iodide leaching of gold