International Credit Flows and Pecuniary Externalities