Controlling microbubble dynamics in ultrasound therapy