Thermionic and field electron emission devices from diamond and carbon nanostructures