Construction of a dynamical matrix for an HCP crystal using phonon data at the symmetry points of the Brillouin zone and elastic constants