Effects of Staggered Magnetic Field on Entanglement in the Anisotropic XY Model