Study of high-temperature thermal stability of max phases in vacuum