Application of Perturbation Methods to Credit and Equity Derivatives.