Optimal operation of simulated-moving-bed reactors for nonlinear adsorption isotherms and equilibrium reactions