Trajectory of a spacecraft to a secondary body which allows the vehicle to return to the primary body without propulsion