Dynamic modeling and optimization of a batch reactor for limonene epoxidation