Markovian representation and prediction of stochastic processes with time-varying rational spectrum