Galvanic conversion of chalcopyrite