Elucidating the theoretical underpinnings of surrogate gradient learning in spiking neural networks | Synapse