Estimation of hydraulic structures safety by comparison of strength and stability theories