Electrolyte modified photoelectrochemical solar cells