Transistor-logic gate