Multivariate Prediction with Nonlinear Principal Components Analysis: Theory