Pulse shape optimization in time-modulated arrays for sideband radiation suppression