Thermal effects on the quantum efficiency of 3 μm erbium lasers