Ab initio calculations of spin-nonconserving exciton–phonon scattering in monolayer transition metal dichalcogenides