Electrochemical dissolution of hard metal alloys