Solar energy harvesting in photoelectrochemical solar cells