Ion implantation and thermal oxidation