Closing the food loops: guidelines and criteria for improving nutrient management