Thermodynamic Modeling of Atomic Bonding in Covalent C x (BN) 1-x Alloys