Optical control of gallium nanoparticle growth