When are two-stage and three-stage least squares estimators identical?