Geometrical tuning of thermal phonon spectrum in nanoribbons