Development of texture in TiN films by use of in situ synchrotron x-ray scattering