Invia SMS: Mathematical Modeling and Optimal Operation of Membrane Processes