Corrosion mechanisms in chloride and carbonate salts.