若x,y,z的方程组kx+y-2z=0,x+ky+2z=0,kx+y+kz=0有非零解,则k的值为多少?