A Methodology to Model the Rain and Fog Effect on the Performance of Automotive LiDAR Sensors