A stress analysis method for fatigue life prediction of welded structures