Concurrence in the inhomogeneous Tavis-Cummings model