Investigation of phase transitions for the hydrothermal formation of TiO2 in the presence of F− ions