Three-dimensional field-effect transistors with top-down and bottom-up nanowire-array channels