Entanglement in Quantum Harmonic Chains