Statistical mechanical model of sorption and diffusion of simple penetrants in polymers