Electron beam generation with variable current amplitude during its pulse in a source with a grid plasma cathode