Application of least squares variance component estimation to errors-in-variables models