Spatio-temporal diffusion strategies for estimation and detection over networks