Dynamic Optimization in the Design and Scheduling of Multiproduct Batch Plants