Analytical theory of satellite relative motion with applications to autonomous navigation and control