Structural analysis of ZrN and TiN films prepared by reactive plasma beam deposition