Optimal estimation of linear discrete-time systems with stochastic parameters