Carbonitrides or oxycarbonitrides of metals, boron or silicon