Corrosion of dental amalgams: electrochemical study of Ag–Hg, Ag–Sn and Sn–Hg phases