Integrative models of nutrient balancing: application to insects and vertebrates