Some electrochemical aspects of corrosion of metals and its prevention by metallic coatings: inhibitors and paints