Estimating the effect size of a hidden causal factor between SNPs and a continuous trait: a mediation model approach