Determining the input dimension of a neural network for nonlinear time series prediction