Effect of Ti incorporation on the electronic structure and optical properties of MoS2 (a first principle study)