Dynamic simulation of emulsion formation in a high pressure homogenizer