Phonons in layer structures