Protection of metals