Maximum likelihood and least squares estimators for a non-linear model with heterogeneous variances