TiN-CVD process optimization for integration with Cu-CVD