Generation of high power rf pulses in the magnetron and reflex triode systems