Design of a 162.5 MHz continuous-wave normal-conducting radiofrequency electron gun