Gain compensation across LIDAR scans