Spectral and structural signatures of phase transformation in the charge density wave material 1T−TaS2 intercalated with triethylenediamine