Numerical simulation of electron-beam-induced gate currents in a GaAs MESFET. I. Theory and model