Sovereign default, terms of trade and interest rates in emerging market economies