Synthesis of Porous and Graphitic Carbon for Electrochemical Detection