Coordinated dynamic behaviors in multi-robot systems with time-varying topologies