Essays on the optimal choice of exchange rate regime in emerging countries