Any papers or sources to learn the methods to compute the smoothed shocks?

See

But that will not work for nonlinear models. The starting point in this case may be https://www.stats.ox.ac.uk/~doucet/doucet_johansen_tutorialPF2011.pdf