Laser-assisted chemistry in the reaction Mg(1S)+CO2→MgO(B1Σ+)+CO