Model nebulae and determination of the chemical composition of the Magellanic Clouds.