Nonlinear model predictive control for improved water recovery and throughput stability for tailings reprocessing