Methods of replacing halogen in aromatic compounds by RS-functions