Electron-doping dependence of the anisotropic superconductivity in BaFe$_{2-x}$Ni$_{x}$As$_2$