Spectrum sensing for cognitive radio exploiting spectral masks