Bacterial bioluminescence onset and quenching: A dynamical model for a quorum sensing-mediated property