Gain, index variation, and linewidth-enhancement factor in 980-nm quantum-well and quantum-dot lasers