Energy distribution of electrons from cathode in magnetron injection gun