Optically Controlled Ternary Logic Circuits Based on Organic Antiambipolar Transistors