Explain the significance of stress-strain diagrams in mechanical engineering, detailing how different regions of the diagram can be used to determine material properties such as elasticity, yield strength, and ultimate tensile strength, and how these properties influence the selection of materials for different mechanical applications.