Sustainability in the safety measures of the historical-cultural heritage against hydraulic risks