Comprehensive theoretical studies on the gas phase SN2 reactions of anionic nucleophiles toward chloroamine and N-chlorodimethylamine with inversion and retention mechanisms.