Thermodynamic modeling of gas transport in glassy polymeric membranes