Entanglement swapping in two independent Jaynes-Cummings models