Parameters estimation in spiking neural networks: a reverse-engineering approach