Digital Hardware Implementation of Optimized Spiking Neurons