Geometry of quantum vortices and link invariants