A framework for agent-based models of human needs and ecological limits