Stochastic inference with deterministic spiking neurons