Berezinskii–Kosterlitz–Thouless Transition within the Sine-Gordon Approach: The Role of the Vortex-Core Energy