DFT study on the mechanisms of the CH2CO+NCX (X=O, S) reactions