Fracture mechanics based approach to fatigue analysis of welded joints