Covariate balancing using the integral probability metric for causal inference