Method of virtual trajectories for the design of gravity assisted missions