Research on optimum slowly-rising driver for electro-optic Q-switched laser