Characterizing ionic liquids as reaction media through a chemical probe