Spectroscopic investigations of divertor detachment in TCV. (August 2017)