Analysis of the small-scale structure of turbulence on smooth and rough walls