The phase transition in the electronic structure of 1T-TiSe2