Pair-by-pair pulse shaping for optical arbitrary waveform generation by dual-comb heterodyne