Investigation of PA-CVD of TiN: Relations between process parameters, spectroscopic measurements and layer properties