Luminescent Chemosensors Based on Anthracene or Dioxyxanthone Derivatives