Surface and interface analysis of titanium nitride diffusion barriers