Entanglement and tensor network states