Leader selection in consensus networks