A weighted U statistic for association analysis considering genetic heterogeneity