Critical entanglement of XXZ Heisenberg chains with defects