Variation of spontaneous emission with current in GaAs homostructure and double-heterostructure injection lasers