Design of simulated moving bed units under nonideal conditions