On using perturbation analysis to do sensitivity analysis: derivatives vs. differences