On the synthesis of nanostructured TiO2 anatase phase and the development of the photoelectrochemical solar cell