Structural changes in time series models