3D ranging and tracking using lensless smart sensors