Foreign Currency Debt and Capital Flows in Emerging Markets