Forecasting volatility by means of threshold models