Q-Switching Simulation of Er-doped LiNbO3 Waveguide Lasers