Instance Weighting for Domain Adaptation via Trading off Sample Selection Bias and Variance