logic gate construction via nmos transistors 985