Anodic electrochemistry of chalcopyrite