Controlling a continuous stirred tank reactor for zinc leaching