Pulsating variable stars in the Magellanic Clouds