A cultural economy model for studying food systems