Flexible carbon nanotube Schottky diode and its integrated circuit applications