Wide-sense martingale approach to linear discrete-time optimal estimation