Synthesis of carbon molecular sieves by activation and coke deposition