Solution-processed nanomaterials for applications in photoelectrochemical solar cells