Successive ion implantation of high doses of carbon and nitrogen on steels