Estimation and detection over adaptive networks