the chemistry of gold extraction