Substitution reactions in ionic liquids. A kinetic study