Correlation between electronic and electrochemical properties of LixTi1+yS2