Luminescent aromatic dicarboxamide-lanthanide conjugates as molecular logic gates