Optimization of a novel process for preparation of silicon carbide foams