Emulating the dynamics of complex systems using autoregressive models on manifolds (mNARX)