A new mechanism for internal nucleophilic substitution reactions