Optimal trajectories towards small bodies: a new global strategy with local refinements