Spectral function of the Kondo model in high magnetic fields