Computational event-driven vision sensors for in-sensor spiking neural networks