Distributed binary consensus in networks with disturbances