Estimation of Causal Effects with Generalized Additive Models