Three-dimensional integration of resonant tunneling structures for signal processing and three-state logic