Study of residual stress in selective laser melting of Ti6Al4V