Effect of magnetic transition on the lattice expansion of nickel