What city-states declined during the Ubaid and Uruk periods