Modeling Cities and Regions as Complex Systems (From Theory to Planning Applications)