Assessing and comparing influencing factors of residual stresses in selective laser melting using a novel analysis method