The role of phonon scattering in the indistinguishability of photons emitted from semiconductor cavity QED systems