M supergiants in the Milky Way and the Magellanic Clouds Colors, spectral types, and luminosities