Least-Squares Variance Component Estimation. Theory and GPS Applications