On the time-varying Riccati difference equation of optimal filtering