The role of the exchange rate regime in the process of real and nominal convergence