External debt financing and macroeconomic instability in emerging market economies