How does the concept of slope stability analysis contribute to the assessment and mitigation of risks associated with natural and man-made slopes, considering factors like soil properties, groundwater conditions, and external loads?