Asymptotic behavior of tail and local probabilities for sums of subexponential random variables