Optimization of sub-5-nm multiple-thickness gate oxide formed by oxygen implantation