Computational model of Q-switch Nd:YAlO3 dual-wavelength laser