Learning Causal Relationships from Conditional Moment Conditions by Importance Weighting