Chemical optimization of self-assembled carbon nanotube transistors.