Direct-Gap Gain and Optical Absorption in Germanium Correlated to the Density of Photoexcited Carriers, Doping, and Strain