Calculation of binding isotherms for heterogeneous polymers