Magnetic Rossby waves in a stably stratified layer near the surface of the Earth's outer core