Distributed estimation of global parameters in delay-tolerant networks