Photoelectrochemical batteries for efficient energy recovery.