A Stochastic Model for Neuronal Firing Activity in the Presence of Time-Varying Input Signals