The assessment of risk for a gravity dam