Controlling the gain contribution of background emitters in few-quantum-dot microlasers