Discuss the various types of stress and strain that materials can experience under different loading conditions, and explain how the understanding of these mechanical properties is essential for ensuring the structural integrity of mechanical components.