Birth and evolution of an optical vortex