Electron beam dose planning using discrete Gaussian beams. Mathematical background.