Spectrum-adaptive networking