Electronic structures of1T−TiS2and the intercalation compoundNi1∕3TiS2from x-ray spectroscopies: Electron correlation and hybridization effects