A global approach to optimal space trajectory design