Analyses of mode-hopping phenomena in an AlGaAs laser