Direct-drive photovoltaic electrodialysis via flow-commanded current control