Text this: Wastewater minimisation in multipurpose batch plants with changeover constraints and energy optimisation