Thermal entanglement in Tavis-Cummings models with Kerr media