A Model for the Adoption of Metallurgy in the Ancient Middle East