Critical perturbations and nonlinear stability in fluid mechanics