Sorption equilibria and diffusion in polymeric membranes