Efficiency of unicast and broadcast gossip algorithms for wireless sensor networks