Energy recovery and electrode regeneration under different charge/discharge conditions in membrane capacitive deionization