Cavitation dynamics of laser ablation of bulk and wire-shaped metals in water during nanoparticles production.