Model-based design of an intermittent simulated moving bed process for recovering lactic acid from ternary mixture.