Quantum-well transistor laser for optical interconnect and photonic integrated circuits