Critical pressure for gas storage in unlined rock caverns