Asymptotic formulas for spectral and Weyl functions of Sturm-Liouville operators with smooth coefficients