The spectral dimension of combs and trees