Compact Modeling of Carbon Nanotube Thin Film Transistors for Flexible Circuit Design