Synchronization of spin-transfer torque oscillators by spin pumping, inverse spin Hall, and spin Hall effects