Synchronization of Heterogeneous Dynamical Networks via Phase Analysis