The onset of synchronization in arbitrary heterogeneous networks of interacting Kuramoto systems