Coupled perturbed heteroclinic cycles: Synchronization and dynamical behaviors of spin-torque oscillators