Flexible and reduced-complexity logic circuits implemented with resonant tunneling transistors