The effects of ion-implanted impurities on the anodic oxidation of titanium