Interpretation of sorption and diffusion data in porous solids