Self-synchronization of unbalanced rotors and the swing equation