Discuss the role of geotechnical engineering in mitigating natural disasters such as earthquakes and landslides. How do soil mechanics principles influence the design and construction of structures to withstand such events?