Lattice dynamics and the incommensurability of the structures of hexagonal polytypes of diamond