A model of a concentrated dispersion exhibiting bridging flocculation and depletion flocculation