Electrostatic and thermal analysis of a dual-anode electron gun for space traveling-wave tubes