Environmental analysis based on luminescence in organized supramolecular systems