If the two matrices \[\begin{bmatrix} 1 &0 &x \\ 0 & x& 1\\ 0 & 1 & x \end{bmatrix} \text{and }\begin{bmatrix} x &1 &0 \\ x & 0& 1\\ 0 & x & 1 \end{bmatrix}\] have the same determinant, then the value of \(x\) is
- A\(\frac{1}{2}\)
- B\(\sqrt2\)
- C\(\pm \frac{1}{2}\)
- D\(\pm \frac{1}{\sqrt2}\)