Electrochemically assisted deposition of transparent, mechanically robust TiO2 films for advanced applications