Vortex dynamics in the two-dimensional BCS-BEC crossover