Statistical thermodynamics of the stability of multivalent ligand-receptor complexes.