Quantum entanglement and Bell inequalities in Heisenberg spin chains