Couple-group consensus for second-order multi-agent systems with fixed and stochastic switching topologies