THERMAL ENTANGLEMENT IN THE ANISOTROPIC XXZ MODEL UNDER AN INHOMOGENEOUS MAGNETIC FIELD