Infinitesimal and finite perturbation analysis for queueing networks