Optical properties of hybrid polymers as barrier materials