Control of Nanowire Growth by Droplet Dynamics with Optical Applications