Optimization of diode-pumped doubly Q-switched mode-locked laser with electro-optic modulator and GaAs saturable absorber