Electric field control of Berry phase in an optical interferometer