A comparative study of the diffusion barrier properties of TiN and ZrN