Optimizing the technology for making TiB2-TiC materials