Pulsed-ion-beam nitriding and smoothing of titanium surface in a vacuum