Combined quantum chemical and modeling study of CO hydrogenation on water ice