Lanthanide-doped luminescent ionogels.