Global quantum discord and thermal tensor network in XXZ chains at finite temperatures