The electrochemistry of alloys