Synthesis of composite graphitic scaffolds using polysaccharide precursors