Simulation of a Magnetron Using Discrete Modulated Current Sources