Predictive model for gas and vapor sorption and swelling in glassy polymers: II. Effect of sample previous history