Role of the vortex-core energy on the Berezinskii-Kosterlitz-Thouless transition in thin films of NbN.