Phase transition and spall behavior in β-TiN