Characterization of surface layers in ion-nitrided titanium and titanium alloys