Sensitivity to network perturbations in the randomized shortest paths framework: theory and applications in ecological connectivity