S-diagonalizable operators and their spectrum