p-Channel, n-Channel and ambipolar field-effect transistors based on functionalized carbon nanotube networks