Theory of orbit determination