A framework for the economic analysis of disease in farm livestock