Electron gun with cold cathode for THz devices