Explain the theoretical basis of material fatigue and fracture mechanics, highlighting their significance in engineering design and failure analysis.