GaAs–AlxGa1−xAs heterostructure laser with separate optical and carrier confinement