Numerical Simulations of Cavitating Bubbles in Elastic and Viscoelastic Materials for Biomedical Applications