Modelling the onset of virulence in pathogenic bacteria.