State diagrams and sorption isotherms of bacterial suspensions and fermented medium