Least-squares variance component estimation: Theory and GPS applications