Spectroscopic study of a pulse plasma used for production and deposition of TiN films