Nucleophilic substitution reactions with ammonia