State-Space Models with Regime Switching: Classical and Gibbs-Sampling Approaches with Applications