Optimal Tracking and Formation Keeping Near a General Keplerian Orbit under Nonlinear Perturbations