Dense TiO2 thin film: photoelectrochemical and photocatalytic properties.