Carbon nanotube transistors and logic circuits