Mechanism and optimization of ruthenium-catalyzed oxalamide synthesis using DFT