the chemistry of copper heap leaching