Functionalized Organic Material Platform for Realization of Ternary Logic Circuit.