Controlled growth of high-quality TiO2 nanowires on sapphire and silica