Describir: A biomimetic neural encoder for spiking neural network