Intermodal injection locking and gain profile measurement of GaAlAs lasers