Microstructure, residual stress, and fracture of sputtered TiN films