Bayesian test of homogeneity for Markov chains