Green synthesis and dye-sensitized solar cell application of rutile and anatase TiO2 nanorods