Waveform synthesis for diversity-based beampattern design.