A generalized theory of sorption phenomena in biological materials