Directed synthesis of TiO2 nanorods and their photocatalytic activity