Asymptotic solution of the Kramers-Moyal equation and first-passage times for Markov jump processes