Field-emission characteristics of carbon nanotubes and their applications in photonic devices