Magnesium ion mediated stereospecific formation of N-substituted ethanolamines during reductive amination