Diffusion strategies for distributed Kalman filtering and smoothing