On the asymptotic behaviour of the Titchmarsh-Weyl m-coefficient and the spectral function for scalar second-order differential expressions