Entanglement of atoms in Tavis-Cummings model