This can be done by placing secondary electrodes in each phase and close to interface each phase has a reference electrode.
To accomplish this, secondary electrodes are inserted into each phase, and a reference electrode is positioned near each phase, with one reference electrode per phase.