Spin-orbit coupling and magnetic field effects in photoredox reactions of ruthenium(II) complexes