Organic–inorganic hybrid coatings for corrosion protection