Method for preparing chemical compounds of interest by aromatic nucleophilic substitution