Effects of film thickness on density and gas permeation parameters of glassy polymers