Electron guns using field emission, photo emission, or secondary emission electron sources