Renormalization-group flow and asymptotic behaviors at the Berezinskii-Kosterlitz-Thouless transitions