Gibbs sampling approach to regime switching analysis of financial time series