Stability criteria for fluid flows