Analysis and pinning control for passivity of multi-weighted complex dynamical networks with fixed and switching topologies