Lattice dynamics of intermediate valence semiconductor SmB6