Optical gain and losses of epitaxial and diffused GaAs injection lasers