Energy balance of a laser ablation plume expanding in a background gas