Effects of fluorine doping on the photocatalytic activity of TiO2 in liquid and gas phase reactions