Atomically chemically graded Ti/TiN interface