A global optimization method for the design of space trajectories