Electric field generated by the ring current at the plasmapause region