Preparation of transparent conducting oxide nanostructures for dye-sensitized solar cells