Study of the deposition of Ti/TiN multilayers by magnetron sputtering