Carrier and light trapping in graded quantum-well laser structures