Spectral methods for functional brain imaging