If z=1+iz = 1 + iz=1+i, which of the following is equal to z2−2z+2z^2 - 2z + 2z2−2z+2?
000
2i2i2i
1+i1+i1+i
222