Mutual influence between covalent and noncovalent interactions in H3N–MCN–XF (X = H, Li, Cl, Br; M = Ag, Cu, Au)