Chemical Evolution of the Magellanic Clouds