Phase stability of nickel and zirconium stannides