Modeling and forecasting volatility subject to changes of regime