comprising a barrier layer to prevent diffusion of hydrogen or oxygen