Predicting state transitions in brain dynamics through spectral difference of phase-space graphs