Solute and penetrant diffusion in swellable polymers. I. Mathematical modeling