Tensor network annealing algorithm for two-dimensional thermal states