Density functional theory study on the electronic, optical and adsorption properties of Ti-, Fe- and Ni- doped graphene