Preparation of carbon molecular sieves by controlled oxidation treatments