Patterns of international capital flows and their implications for economic development