A synthetic method for assessing the risk of dam flooding