Synthesis and catalytic uses of carbon and silicon carbide nanostructures