Entanglement dynamics for a six-qubit model in cavity QED