Nanostructured polymers for optoelectronics and biotechnological applications