Patterns of trade, delocalization choices and catching-up