Leaching mechanism for chalcopyrite in hydrochloric acid