The mechanisms of nucleophilic substitution in aliphatic compounds