Approach to the quantum phase transition of spin chains in terms of pair-wise entanglement