Sealed three-dimensional nanochannels