Nanostructured organic matrices and intelligent sensors