Preparation of compositionally gradient Ti-TiN films by r.f. reactive sputtering