Ultrafast varifocal lenses in laser material processing and particle tracking velocimetry