What were the similarities in political structures, religion, and social structure in Mesopotamia and Egypt?