Study of carbon nanotube based terahertz detectors