GaAs-based quantum well and quantum dot light-emitting diodes and lasers for 1.3 and 1.55 um emission