Pulse Sequence Optimization for Harmonic-Diversity Exploitation of Time-Modulated Arrays in Cognitive Radio Applications