Causal Inference In Semiparametric And Nonparametric Structural Equation Models