The Role of Organometallic Complexes in the Synthesis of Shaped Carbon Materials