Institution-Induced Productivity Differences and Patterns of International Capital Flows