Electron source and acceleration regime of a picosecond electron beam in a gas-filled diode with inhomogeneous field