Nonlinear regression with autoregressive errors