Is the S-shaped curve a general law? An application to evaluate the damage resulting from water-induced disasters