Second-order least-squares estimation for regression models with autocorrelated errors