Interplay of livestock and farming practices on the joint nutritional quality of foods and natural resource use