Modification of electronic structure by charge transfer and molecular motion in titanium disulfide-ethylenediamine intercalation compound