A Generalized Reverse-Electrodialysis Model Incorporating Both Continuous and Recycle Modes for Energy Harvesting From Salinity Gradient Power