Application of corrosion inhibitors in water-borne coatings