Work distribution in a time-dependent logarithmic–harmonic potential: exact results and asymptotic analysis