Chemical corrosion of metals and alloys