what are some ways of preventing corrosion of metals