How did the economy of Mesopotamia impact the societies and cultures?