Structure, mechanical and tribological properties of d.c. magnetron sputtered TiB2 and TiB2(N) thin films