preparation and characterization of carbide and nitride