Thermodynamic Modeling of the Vacuum Synthesis of Transition-Metal Borides