Calculation of flocculation and coalescence rates for concentrated dispersions using emulsion stability simulations.