Reinforcement Learning for Spiking Neural Networks