Asymptotic behavior of extremal functions to an inequality involving Hardy potential and critical Sobolev exponent