Physics-informed nonlinear vector autoregressive models for the prediction of dynamical systems