Synthesis and immobilization of molecular switches onto titaniumdioxide nanowires