Flexible conducting polymer transistors with supercapacitor function