Interaction between adsorbed layers of macromolecules