Adhesion versus cohesion in liquid-liquid and solid-liquid dispersions