Explain the concept of stress and strain in materials under mechanical loading. Discuss the differences between elastic, plastic, and viscoelastic behavior of materials, and their implications in structural design.