Fabio Jakobsen sprinted his way to victory on the final stage of the Vuelta a Espana, as Primoz Roglic finished safely to seal a maiden Grand Tour title.