A hierarchical model to predict the probability of germination of bacterial spores