Analysis of the permeation of CO2 through glassy polymers