Oxidation of ion-implanted metals