TRIG: hardware accelerator for inference-based applications and experimental demonstration using carbon nanotube FETs