Entanglement, tensor networks and black hole horizons