Discrete regenerative fuel cell reduces hysteresis for sustainable cycling of water