Differential sorption and permeation in viscous media