Risk assessment and safety criteria for underground caverns