Characterization and optimization of the laser diffracted by an acoustic-optical modulator in the infrared region