Modeling aggregation of colloidal particles