Influence of thermal treatments on phase formation and magnetic behaviour in metal transition doped TiO2