Analysis of thermal imaging performance under extreme foggy conditions: applications to autonomous driving