Polymorphic phase transition in BaTiO3 by Ni doping