The stress-energy tensor of flavor fields from AdS/CFT