若|x-y-2|+(x+y+1)^2=0,求代数式x^2-2xy+y^2的值