Exploiting time-modulated arrays for harmonic beamforming in advanced communications and radar systems