If for some \( \theta \in (0,\pi) \), \( A^{2} = A^{T} \), then the sum of the diagonal elements of the matrix \( (A + I)^{3} + (A - I)^{3} - 6A \) is equal to ______.