The dynamics of cavitation bubbles