Inkjet printed circuits based on ambipolar and p-type carbon nanotube thin-film transistors