Measurements of sorption isotherms and diffusion coefficients by means of a magnetic suspension balance