Depth estimation in SPAD-based LIDAR sensors