Stability of continuous-time consensus algorithms for switching networks with bidirectional interaction