Ternary Logic Circuit Based on Negative Capacitance Field-Effect Transistors and Its Variation Immunity