Condensation kinetics of cavity polaritons interacting with a thermal phonon bath