The Local Potential as a tool to study the spontaneous emulsification phenomenon