A Feynman-Kac Formula Approach for Computing Expectations and Threshold Crossing Probabilities of Non-Smooth Stochastic Dynamical Systems