Linking genetic mechanisms of heterozygosity-fitness correlations to footprints of selection at single loci