Find the eigenvalues and orthonormal eigenvectors of Z=diag(1,−1)Z = \operatorname{diag}(1,-1)Z=diag(1,−1) and write its spectral decomposition.