Synthesis of the carbon framework of olivin