Neural network architecture selection for nonlinear time series