Modelling photon statistics of cavity QED systems for integrated photonic quantum computing`