Radial electric field during dynamic processes in a tokamak and L-H transitions