Evolution of Cavitation Activity During Ultrasonic Nanostructuring of Magnesium