Temperature dependent direct-bandgap light emission and optical gain of Ge