A method for prediction of S-N curve of spot-welded joints based on numerical simulation