Mathematical modelling of batch and continuous bacterial leaching