Text this: Flexible modeling and control of capacitive-deionization processes through a linear-state-space dynamic Langmuir model