High-temperature behavior of monolayer graphyne and graphdiyne