Electron trajectories in the magnetic field of capillary discharge: Application to laser wakefield accelerators in plasma channel