Diffusion models for firing of a neuron with varying threshold