Spectroscopic method to directly measure electric field distribution in tokamak plasma edge