A graph-theoretic characterization of structural controllability for multi-agent system with switching topology