Understanding co formation of diamond and carbide phases from gas mixtures and phase stability of novel high entropy alloys using thermodynamic equilibrium calculations