Optimal Maintenance Planning for Multipurpose Batch Plants