Distributed averaging on digital erasure networks