Synthesis and characterization of cobalt carbide based nanomaterials