add diagonalize / test of spin_hamiltonian for serial SLEPc