The design and optimisation of active mine water treatment plants