Photoelectrochemical cells based on dye sensitized colloidal TiO2 layers