A micromachined vacuum triode using a carbon nanotube cold cathode