Mechanistic understanding of emulsion formation during processing