Quantum entanglement investigation on impurity effects in the transverse Ising chain