Prediction of cooling rate and microstructure in laser spot welds