Effect of hydroxyl group attachment on TiO2 films for dye-sensitized solar cells