Stabilizing Nonlinear Adaptive Control of Spacecraft before and after Capture