Distributed Linear Filtering and Prediction of Time-varying Random Fields