A Nonparametric Bayesian Approach to Detect the Number of Regimes in Markov Switching Models