Interdependence and contagion in international stock markets: A latent Markov model approach