Limit analysis of collapse mechanisms in cavities and tunnels according to the Hoek-Brown failure criterion