p-Channel, n-Channel Thin Film Transistors and p−n Diodes Based on Single Wall Carbon Nanotube Networks