Effects of the immune system on metabolism: implications for production and disease resistance in livestock