Ion beam analysis of TiN/Ti multilayers deposited by magnetron sputtering