Smart multifunctional hybrid coatings with adjustable permeability for migration barriers