Single-file motion of polyatomic molecules in one-dimensional nanoporous materials