Fiber amplifier with integrated optical cooler