Bacterial persistence: a model of survival in changing environments