Local analysis of Marangoni effects during and after droplet formation