Theoretical study of the dissolution of copper from chalcopyrite