How did Hammurabi gain control of Mesopotamia?