Exact Gradients for Stochastic Spiking Neural Networks Driven by Rough Signals