Functionally perturbed stochastic differential equations