A Tutorial on Spiking Neural Networks for Beginners