Design of a cognitive radar for operation in spectrally dense environments