An internal fluorescent probe based on anthracene to evaluate cation-anion interactions in imidazolium salts.