Mechanisms of thermal shock failure for ultra-high temperature ceramic