Photocatalytic and electrooxidation properties of TiO2 thin films deposited by sol-gel