Lattice dynamics of pure and lithium-intercalated transition-metal phosphorous trichalcogenides