Novel smart coatings for corrosion protection