Heat waves and phonon–wall collisions in nanowires