Hamiltonian mean field model: Effect of network structure on synchronization dynamics.