Simulations of one- and two-electron systems by Bead-Fourier path integral molecular dynamics.