Adjusting for Autocorrelated Errors in Neural Networks for Time Series Regression and Forecasting