Electron doping evolution of the anisotropic spin excitations in BaFe2−xNixAs2