Surface modification and shape adjustment of polymer semiconductor nanowires