Phonon dynamics in the layered negative thermal expansion compounds CuxNi2−x(CN)4