A New Class of Structural Functional Response Models for Causal Inference and Mediation Analysis