Neural Spectral Methods: Self-supervised learning in the spectral domain