Mathematical Modelling of Quorum Sensing and Bioluminescence in Bacteria