Internal Q-Switching in Ga1-xAlxAs–GaAs Heterojunction Lasers