Structural analysis of TiNx films prepared by reactive-ion-beam-enhanced deposition