Asymptotic Properties of the Empirical Structure Function of Heavy-tailed Data and Tail Index Estimation