Spectral classification of O and B0 supergiants in the Magellanic Clouds