Photochemical diodes of a TiO2 film prepared by a sol-gel method