Boundary scattering effect on the thermal conductivity of nanowires