How did the domestication of animals contribute to the development of permanent settlements?