Bioreactor shape optimisation. Modeling, simulation, and shape optimization of a simple bioreactor for water treatment