Stabilization of aliphatic and aromatic diazonium ions by coordination: An experimental and theoretical study