Spectral approach for kernel-based interpolation