Let \[ A = \begin{pmatrix} 1 & 0 & 1 \\ 0 & k & 0 \\ 3 & 0 & -1 \end{pmatrix}. \] If the eigenvalues of \( A \) are -2, 1, and 2, then the value of \( k \) is _. (Answer in integer)