Analysis of the critical pressure of cavitation bubbles