Micelles as containers for self-assembled nanodevices: a fluorescent sensor for lipophilicity