The duration of fixed exchange rate regimes