Generating the effect of six harmonics in beam bunchers using only two harmonics