Synthesis and characterization of nanostructured p-conjugated polymers for sensing applications