Numerical Modeling and Dynamic Analysis of a Wave-Powered Reverse-Osmosis System