Effect of metal and non metal doping of TiO2 on photocatalytic activities: ab initio calculations