Dynamic simulations in the design of batch processes