Technique to separate lidar signal and sunlight