Exploring the Connection Between Binary and Spiking Neural Networks