Atomic-scale oxidation of a Sm2Co17-type magnet